<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
//发布&回复评论
Route::post('comments',[\App\Http\Controllers\Admin\qyf\Comments::class,'comments']);
//查看评论
Route::get('lookBroker',[\App\Http\Controllers\Admin\qyf\Comments::class,'lookComments']);
//修改评论
Route::post('updateBrokers',[\App\Http\Controllers\Admin\qyf\Comments::class,'updateComments']);
//删除评论
Route::post('deleteBrokers',[\App\Http\Controllers\Admin\qyf\Comments::class,'deleteComments']);
//查看经纪人列表
Route::get('lookBroker',[\App\Http\Controllers\Admin\qyf\Agents::class,'lookBroker']);
//添加经纪人
Route::post('broker',[\App\Http\Controllers\Admin\qyf\Agents::class,'broker']);
//修改经纪人
Route::post('updateBroker',[\App\Http\Controllers\Admin\qyf\Agents::class,'updateBroker']);
//删除经纪人
Route::post('deleteBroker',[\App\Http\Controllers\Admin\qyf\Agents::class,'deleteBroker']);
//查看门店
Route::get('lookStore',[\App\Http\Controllers\Admin\qyf\Stroe::class,'lookStores']);
//添加门店
Route::post('store',[\App\Http\Controllers\Admin\qyf\Stroe::class,'addStore']);
//修改门店
Route::post('updateStore',[\App\Http\Controllers\Admin\qyf\Stroe::class,'updateStore']);
//删除门店
Route::post('deleteStore',[\App\Http\Controllers\Admin\qyf\Stroe::class,'removeStore']);
//获取地图上车地址
Route::get('address',[\App\Http\Controllers\Api\qyf\Maps::class,'address']);

Route::get('getLocation',[\App\Http\Controllers\Api\qyf\Maps::class,'getLocation']);
//二手房小区列表
//Route::get('sHouse',[\App\Http\Controllers\Admin\qyf\HouseResources::class,'house']);
//小区列表查询
Route::get('region',[\App\Http\Controllers\Admin\qyf\HouseResources::class,'region']);
//小区列表添加
Route::post('addRegion',[\App\Http\Controllers\Admin\qyf\HouseResources::class,'addRegion']);
//小区列表修改
Route::post('updateRegion',[\App\Http\Controllers\Admin\qyf\HouseResources::class,'updateRegion']);
//小区列表删除
Route::post('deleteRegion',[\App\Http\Controllers\Admin\qyf\HouseResources::class,'deleteRegion']);
//ES搜索
Route::get('search',[\App\Http\Controllers\Admin\qyf\HouseResources::class,'search']);
